package com.wc.算法提高课.E第五章_数学知识.博弈论.移棋子游戏;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

/**
 * @Author congge
 * @Date 2024/10/6 13:50
 * @description https://www.acwing.com/problem/content/description/1321/
 */
public class Main {
    /**
     * 思路：
     * 博弈论中的sg函数, 单个旗子就看sg(x) 是否不为0<p>
     * 多个旗子就 sg(x[1]) ^ sg(x[2])...^sg(x[k]) 是否不为0
     */
    static FastReader sc = new FastReader();
    static PrintWriter out = new PrintWriter(System.out);
    static int N = 2010, M = 6010;
    static int[] h = new int[N], e = new int[M], ne = new int[M];
    static int[] f = new int[N];
    static int n, m, k, idx = 1;

    public static void main(String[] args) {
        n = sc.nextInt();
        m = sc.nextInt();
        k = sc.nextInt();
        while (m-- > 0) {
            int a = sc.nextInt(), b = sc.nextInt();
            add(a, b);
        }
        int res = 0;
        Arrays.fill(f, -1);
        while (k-- > 0) {
            int u = sc.nextInt();
            res ^= sg(u);
        }
        if (res > 0) out.println("win");
        else out.println("lose");
        out.flush();
    }

    static void add(int a, int b) {
        e[idx] = b;
        ne[idx] = h[a];
        h[a] = idx++;
    }

    static int sg(int u) {
        if (f[u] != -1) return f[u];
        Set<Integer> set = new HashSet<>();
        for (int i = h[u]; i > 0; i = ne[i]) {
            int j = e[i];
            set.add(sg(j));
        }
        for (int i = 0; ; i++) {
            if (!set.contains(i)) {
                f[u] = i;
                break;
            }
        }
        return f[u];
    }
}

class FastReader {
    StringTokenizer st;
    BufferedReader br;

    FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    int nextInt() {
        return Integer.parseInt(next());
    }

    String nextLine() {
        String s = "";
        try {
            s = br.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return s;
    }

    long nextLong() {
        return Long.parseLong(next());
    }

    double nextDouble() {
        return Double.parseDouble(next());
    }

    // 是否由下一个
    boolean hasNext() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                String line = br.readLine();
                if (line == null)
                    return false;
                st = new StringTokenizer(line);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return true;
    }
}
